{% extends 'myadmin/base.html' %}
{% block main_body %}
<style>
    .table-box {
        overflow-x: auto;
        margin: 10px 0;
    }
    .dataTable {
        min-width: 1200px;
    }
    .dataTable th, .dataTable td {
        padding: 8px 12px;
        text-align: center;
    }
</style>
<section class="content-header">
    <h1>今日新增用户详情</h1>
    <ol class="breadcrumb">
        <li><a href="{% url 'myadmin_index' %}"><i class="fa fa-home"></i> 首页</a></li>
        <li class="active">今日新增用户详情</li>
    </ol>
</section>
<section class="content">
    <div class="box box-primary">
        <div class="box-header with-border">
            <h3 class="box-title">今日新增用户列表</h3>
        </div>
        <div class="box-body">
            <div class="table-box">
                <table class="table table-bordered table-striped dataTable">
                    <thead>
                        <tr>
                            <th>用户ID</th>
                            <th>用户名</th>
                            <th>注册时间</th>
                            <th>邮箱</th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for user in users %}
                        <tr>
                            <td>{{ user.user_id }}</td>
                            <td>{{ user.username }}</td>
                            <td>{{ user.date_joined }}</td>
                            <td>{{ user.email }}</td>
                        </tr>
                        {% empty %}
                        <tr><td colspan="4">暂无今日新增用户记录</td></tr>
                        {% endfor %}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</section>
{% endblock %}